/**
 * 调用函数返回一段html代码 
 */
function teacherleftMenu () {
    return `
    <div class="mt-4">
        <img style="width: 5rem; height: 5rem;" class="img-thumbnail mx-auto d-block rounded-circle"
            src="../imgs/qrcode.jpg" alt="头像">
    </div>
    <div class="row mt-3">
        <h3 class="text-center">不要看我</h3>
    </div>
    <div class="mt-3 d-flex justify-content-around">
        <a href="#" class="btn btn-outline-primary rounded-pill btn-sm">账号管理</a>
        <a href="#" class="btn btn-outline-primary rounded-pill btn-sm">输入邀请码</a>
    </div>
    <!-- 菜单导航 -->
    <ul class="list-group mt-3 ">
        <li class="list-group-item border border-0 bg-body-secondary">
            <a href="#" class="link-secondary text-decoration-none"><i class="bi bi-mortarboard-fill"></i>
                学期教学</a>

        </li>
        <li class="list-group-item border border-0 bg-body-secondary">
            <a href="/teacher/" class="link-secondary text-decoration-none"><i class="bi bi-mortarboard-fill"></i>
                课程</a>
        </li>
        <li class="list-group-item border border-0 bg-body-secondary">
            <a href="#" class="link-secondary text-decoration-none"><i class="bi bi-mortarboard-fill"></i>
                教学</a>
        </li>
        <li class="list-group-item border border-0 bg-body-secondary">
            <a href="/teacher/depart.html" class="link-secondary text-decoration-none"><i
                    class="bi bi-envelope-paper-fill"></i> 系部管理</a>
        </li>
        <li class="list-group-item border border-0 bg-body-secondary">
            <a href="/teacher/class.html" class="link-secondary text-decoration-none"><i class="bi bi-people"></i> 班级管理</a>
        </li>
        <li class="list-group-item border border-0 bg-body-secondary">
            <a href="#" class="link-secondary text-decoration-none"><i
                    class="bi bi-chat-right-dots-fill"></i> 消息</a>
        </li>
        <li class="list-group-item border border-0 bg-body-secondary">
            <a href="#" class="link-secondary text-decoration-none"><i class="bi bi-mortarboard-fill"></i>
                下载中心</a>
        </li>
    </ul>`;
}
let leftmenu=teacherleftMenu();
// 使用jQuery的DOM操作将html替换到侧菜单栏中
$("#leftmenu").append($(leftmenu));
